package com.common.help.test18;

public class All {

	F f = new F();
	
	public All(){
		Class<?> c1 = f.getClass();
		
		Class<?> c2 = F.class;
		
		Class<?> c3 = null;
		try {
			c3 = Class.forName("com.common.help.test18.F");
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
		
		System.out.println(c1==c2);
		System.out.println(c2==c3);
		
	}
	
//	public static void main(String[] args) {
//		new All();
//	}
	public static void main(String[] args) {
		Class c1 = int.class;//int 的类类型
		Class c2 = String.class;//String类的类类型
		Class c3 = void.class;
		System.out.println(c1.getName());
		System.out.println(c2.getName());
		System.out.println(c2.getSimpleName());
		System.out.println(c3.getName());
		}
}
class F{
	
}

